// Pump holder implementation
// Copyright 2006 (C) Ralph Thomas

#include <view/pump_holder.h>

namespace view {
	struct dict_holder_t {
		dict_holder_t( const adobe::dictionary_t& dict ) : d( dict ) {}
		adobe::dictionary_t d;
	};
	adobe::widget_node_t pump_holder_factory(
		const adobe::dictionary_t&	parameters,
		const adobe::widget_node_t&	parent,
		const adobe::factory_token_t&	token ) {
		//
		// We just need to ensure that the pumps don't get destroyed
		// until the rest of the UI goes down.
		//
		dict_holder_t* dh( new dict_holder_t( parameters ) );
		token.assemblage_m.delete_on_destruction( dh );
		return parent;
	}
};

